package com.djq.hhc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.djq.hhc.model.shop.ShopGoods;
import com.djq.hhc.result.Result;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: dadd7
 * @Date: 2023/03/05/下午 4:46
 * @Description:
 */
public interface ShopGoodsService extends IService<ShopGoods> {
    Result updateGoodsById(ShopGoods shopGoods);

    Result saveGoods(ShopGoods shopGoods);

    Result getGoodsById(Long id);

    Result removeGoodsById(Integer id);

    Result buyGoods(String token, Long id);

    Result createOrder(Long id);
}
